package com.pmenergy.util;

import java.io.Serializable;
import java.util.List;

import javax.faces.model.SelectItem;

public class DynamicField implements Serializable {  
  
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Object value;  
    private boolean required;  
    private List<SelectItem> selectItems;
    private String labelName;
    private Integer labelColspan;
    private Integer labelRowspan;
    private String controlName;
    private Integer controlColspan;
    private Integer controlRowspan;
    private Integer rowNumber;
    private String keyName;
  
    public DynamicField() {  
    }  
  
    public Object getValue() {  
        return value;  
    }  
  
    public void setValue(Object value) {  
        this.value = value;  
    }  
  
    public String getKeyName() {  
        return keyName;  
    }  
  
    public void setKeyName(String keyName) {  
        this.keyName = keyName;  
    }
    public boolean isRequired() {  
        return required;  
    }  
  
    public void setRequired(boolean required) {  
        this.required = required;  
    }  
  
    public List<SelectItem> getSelectItems() {  
        return selectItems;  
    }  
  
    public void setSelectItems(List<SelectItem> selectItems) {  
        this.selectItems = selectItems;  
    }  
    
    public DynamicField(Object value, boolean required,List<SelectItem> selectItems, String labelName, Integer labelColspan,Integer labelRowspan, String controlName
    		,Integer controlColspan, Integer controlRowspan, Integer rowNumber , String KeyName) {        
    	this.value=value;
        this.required=required;
        this.selectItems=selectItems;
    	this.labelName=labelName;
        this.labelColspan=labelColspan;
        this.labelRowspan=labelRowspan;
        this.controlName=controlName;
        this.controlColspan=controlColspan;
        this.controlRowspan=controlRowspan;
        this.keyName=KeyName;
        this.rowNumber=rowNumber;        
        
    }
   
   
    public String getLabelName() {
        return labelName;
    }

    public void setLabelName(String labelName) {
        this.labelName = labelName;
    }

    public Integer getLabelColspan() {
        return labelColspan;
    }

    public void setLabelColspan(Integer labelColspan) {
        this.labelColspan = labelColspan;
    }

    public Integer getLabelRowspan() {
        return labelRowspan;
    }

    public void setLabelRowspan(Integer labelRowspan) {
        this.labelRowspan = labelRowspan;
    }

    public String getControlName() {
        return controlName;
    }

    public void setControlName(String controlName) {
        this.controlName = controlName;
    }

    public Integer getControlColspan() {
        return controlColspan;
    }

    public void setControlColspan(Integer controlColspan) {
        this.controlColspan = controlColspan;
    }

    public Integer getControlRowspan() {
        return controlRowspan;
    }

    public void setControlRowspan(Integer controlRowspan) {
        this.controlRowspan = controlRowspan;
    }

    public Integer getRowNumber() {
        return rowNumber;
    }

    public void setRowNumber(Integer rowNumber) {
        this.rowNumber = rowNumber;
    }

}  
    